<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:fragment="nav">
    <div style="border: 2px darkred solid">
        <h2 align="center">基于SpringBook的学生成绩简易系统</h2>
        <div style="display: flex;justify-content: space-between">
            <h3><a href="/home/go2login"> 学生成绩简易系统—首页</a></h3>
            <div style="width: 50%;display: flex;justify-content: space-between;padding-top: 12px">
                <p style="color: brown" th:if="${session.DL==null}">未登录</p>
                <p style="color: blue" th:if="${session.DL!=null}">姓名：<span th:text="${session.DL.getUname()}"></span></p>
                <p style="color: blueviolet" th:if="${session.DL!=null && session.DL.getRole()=='stu'}">角色：学生</p>
                <p style="color: blueviolet" th:if="${session.DL!=null && session.DL.getRole()=='tea'}">角色：教师</p>
                <p style="color: blueviolet" th:if="${session.DL!=null && session.DL.getRole()=='adm'}">角色：管理员</p>
                <p style="color: blue" ><a href="/home/loginout">退出</a></p>
                <div style="width: 10vw;height: 10vw" th:if="${session.DL!=null}">
                    <img style="width: 90%;height: 90%" th:src="'/home/shows/'+${session.DL.getPic()}">
                </div></td>
            </div>
        </div>
    </div>
</div>
</body>
</html>